import { history } from 'umi';
export function logout() {
  // let redirectUrl = '?redirect=' + window.location.hash.substr(1);
  // if (window.location.search) {
  //   redirectUrl += window.location.search;
  // }

  history.push(`/login`);
  // window.location.href = redirectUrl
  // window.location.reload()
}
